import Vue from 'vue'
import axios from 'axios'

import App from './App'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css';
import './assets/js/HB';
import './assets/common.css'

import {VueClient}  from '../VueClient'
import {config}  from '../Config'

config.parentIp = "127.0.0.1"
let vueClient = new VueClient('vue', config)
window.vueClient = vueClient //放到前端全局，以便被引用


if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios
Vue.config.productionTip = false

Vue.use(Vant)

/* eslint-disable no-new */
new Vue({
  components: {
    App
  },
  router,
  store,
  template: '<App/>'
}).$mount('#app')

